import 'package:flutter/material.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/bussine_font.dart';
import 'package:honeypotflutter/publicBussine/bussine_image.dart';

class DeliverResultWarning extends StatelessWidget {
  final String? remind;
  const DeliverResultWarning({
    super.key,
    this.remind,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      child: Row(
        children: [
          Image.asset(
            MGImage.image("deliver_warning", type: ImagePathType.deliver),
            width: 20,
          ),
          SizedBox(width: 10),
          Expanded(
              child: Text(
            remind ?? "温馨提示：请注意，若未点击“投递成功”按钮30秒后默认投递成功",
            style: TextStyle(
              color: MGColors.text3Color,
              fontSize: MGFont.textFont3,
            ),
          ))
        ],
        crossAxisAlignment: CrossAxisAlignment.start,
      ),
    );
  }
}
